package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * RD_Read实体类
 *
 * @author
 *
 */
public class RdRead {
    /***/
    private Object ID;
    /***/
    private Integer ReadYear;

    private Integer ReadYear2;
    /***/
    private Integer ReadMonth;

    private Integer ReadMonth2;
    /***/
    private String UserNo; //用户编码
    /***/
    private String MeterNo; //水表编码
    /***/
    private Integer MaxValue; //最大表码值
    /***/
    private Integer VolumeId;
    /***/
    private Integer VolumeIndex;
    /***/
    private Integer ReadEmpID;
    /***/
    private java.time.Instant ReadDate;
    private String ReadDate1;
    /***/
    private Integer PreValue;
    /***/
    private Integer Enter;
    /***/
    private Integer CurValue;
    /***/
    private Integer Dial;
    /***/
    private Integer Amount;
    /***/
    private String Formula;
    /***/
    private Integer Audit;
    /***/
    private Integer AuditEmpID;
    /***/
    private java.time.Instant AuditDate;

    /*审核时间1*/
    private String AuditDate1;
    /*审核时间2*/
    private String AuditDate2;
    /*用户，用于多对一*/
    private UsUser usUser;

    /**
     * 实例化
     */
    public RdRead() {
        super();
    }
    /**
     * 实例化
     *
     * @param obj
     */
    public RdRead(JSONObject obj) {
        this();
        this.setID(obj.get("ID"));
        if (obj.get("ReadYear") instanceof Number) {
            this.setReadYear(((Number) obj.get("ReadYear")).intValue());
        }
        if (obj.get("ReadMonth") instanceof Number) {
            this.setReadMonth(((Number) obj.get("ReadMonth")).intValue());
        }
        if (obj.get("UserNo") instanceof String) {
            this.setUserNo((String) obj.get("UserNo"));
        }
        if (obj.get("MeterNo") instanceof String) {
            this.setMeterNo((String) obj.get("MeterNo"));
        }
        if (obj.get("MaxValue") instanceof Number) {
            this.setMaxValue(((Number) obj.get("MaxValue")).intValue());
        }
        if (obj.get("VolumeId") instanceof Number) {
            this.setVolumeId(((Number) obj.get("VolumeId")).intValue());
        }
        if (obj.get("VolumeIndex") instanceof Number) {
            this.setVolumeIndex(((Number) obj.get("VolumeIndex")).intValue());
        }
        if (obj.get("ReadEmpID") instanceof Number) {
            this.setReadEmpID(((Number) obj.get("ReadEmpID")).intValue());
        }
        if (obj.get("ReadDate") instanceof java.time.Instant) {
            this.setReadDate((java.time.Instant) obj.get("ReadDate"));
        }
        if (obj.get("PreValue") instanceof Number) {
            this.setPreValue(((Number) obj.get("PreValue")).intValue());
        }
        if (obj.get("Enter") instanceof Number) {
            this.setEnter(((Number) obj.get("Enter")).intValue());
        }
        if (obj.get("CurValue") instanceof Number) {
            this.setCurValue(((Number) obj.get("CurValue")).intValue());
        }
        if (obj.get("Dial") instanceof Number) {
            this.setDial(((Number) obj.get("Dial")).intValue());
        }
        if (obj.get("Amount") instanceof Number) {
            this.setAmount(((Number) obj.get("Amount")).intValue());
        }
        if (obj.get("Formula") instanceof String) {
            this.setFormula((String) obj.get("Formula"));
        }
        if (obj.get("Audit") instanceof Number) {
            this.setAudit(((Number) obj.get("Audit")).intValue());
        }
        if (obj.get("AuditEmpID") instanceof Number) {
            this.setAuditEmpID(((Number) obj.get("AuditEmpID")).intValue());
        }
        if (obj.get("AuditDate") instanceof java.time.Instant) {
            this.setAuditDate((java.time.Instant) obj.get("AuditDate"));
        }
    }

    /**
     * 将当前对象转换为JsonObject
     *
     * @return
     */
    public JSONObject toJson() {
        JSONObject result = new JSONObject();
        if (this.getID() != null) {
            result.put("ID",this.getID());
        }
        if (this.getReadYear() != null) {
            result.put("ReadYear",this.getReadYear());
        }
        if (this.getReadMonth() != null) {
            result.put("ReadMonth",this.getReadMonth());
        }
        if (this.getUserNo() != null) {
            result.put("UserNo",this.getUserNo());
        }
        if (this.getMeterNo() != null) {
            result.put("MeterNo",this.getMeterNo());
        }
        if (this.getMaxValue() != null) {
            result.put("MaxValue",this.getMaxValue());
        }
        if (this.getVolumeId() != null) {
            result.put("VolumeId",this.getVolumeId());
        }
        if (this.getVolumeIndex() != null) {
            result.put("VolumeIndex",this.getVolumeIndex());
        }
        if (this.getReadEmpID() != null) {
            result.put("ReadEmpID",this.getReadEmpID());
        }
        if (this.getReadDate() != null) {
            result.put("ReadDate",this.getReadDate());
        }
        if (this.getPreValue() != null) {
            result.put("PreValue",this.getPreValue());
        }
        if (this.getEnter() != null) {
            result.put("Enter",this.getEnter());
        }
        if (this.getCurValue() != null) {
            result.put("CurValue",this.getCurValue());
        }
        if (this.getDial() != null) {
            result.put("Dial",this.getDial());
        }
        if (this.getAmount() != null) {
            result.put("Amount",this.getAmount());
        }
        if (this.getFormula() != null) {
            result.put("Formula",this.getFormula());
        }
        if (this.getAudit() != null) {
            result.put("Audit",this.getAudit());
        }
        if (this.getAuditEmpID() != null) {
            result.put("AuditEmpID",this.getAuditEmpID());
        }
        if (this.getAuditDate() != null) {
            result.put("AuditDate",this.getAuditDate());
        }
        return result;
    }


    /**
     * 获取ID
     *
     * @return
     */
    public Object getID() {
        return ID;
    }

    /**
     * 设置ID
     *
     * @param ID
     */
    public void setID(Object ID) {
        this.ID = ID;
    }

    /**
     * 获取ReadYear
     *
     * @return
     */
    public Integer getReadYear() {
        return ReadYear;
    }

    /**
     * 设置ReadYear
     *
     * @param ReadYear
     */
    public void setReadYear(Integer ReadYear) {
        this.ReadYear = ReadYear;
    }

    /**
     * 获取ReadMonth
     *
     * @return
     */
    public Integer getReadMonth() {
        return ReadMonth;
    }

    /**
     * 设置ReadMonth
     *
     * @param ReadMonth
     */
    public void setReadMonth(Integer ReadMonth) {
        this.ReadMonth = ReadMonth;
    }

    /**
     * 获取UserNo
     *
     * @return
     */
    public String getUserNo() {
        return UserNo;
    }

    /**
     * 设置UserNo
     *
     * @param UserNo
     */
    public void setUserNo(String UserNo) {
        this.UserNo = UserNo;
    }

    /**
     * 获取MeterNo
     *
     * @return
     */
    public String getMeterNo() {
        return MeterNo;
    }

    /**
     * 设置MeterNo
     *
     * @param MeterNo
     */
    public void setMeterNo(String MeterNo) {
        this.MeterNo = MeterNo;
    }

    /**
     * 获取MaxValue
     *
     * @return
     */
    public Integer getMaxValue() {
        return MaxValue;
    }

    /**
     * 设置MaxValue
     *
     * @param MaxValue
     */
    public void setMaxValue(Integer MaxValue) {
        this.MaxValue = MaxValue;
    }

    /**
     * 获取VolumeId
     *
     * @return
     */
    public Integer getVolumeId() {
        return VolumeId;
    }

    /**
     * 设置VolumeId
     *
     * @param VolumeId
     */
    public void setVolumeId(Integer VolumeId) {
        this.VolumeId = VolumeId;
    }

    /**
     * 获取VolumeIndex
     *
     * @return
     */
    public Integer getVolumeIndex() {
        return VolumeIndex;
    }

    /**
     * 设置VolumeIndex
     *
     * @param VolumeIndex
     */
    public void setVolumeIndex(Integer VolumeIndex) {
        this.VolumeIndex = VolumeIndex;
    }

    /**
     * 获取ReadEmpID
     *
     * @return
     */
    public Integer getReadEmpID() {
        return ReadEmpID;
    }

    /**
     * 设置ReadEmpID
     *
     * @param ReadEmpID
     */
    public void setReadEmpID(Integer ReadEmpID) {
        this.ReadEmpID = ReadEmpID;
    }

    /**
     * 获取ReadDate
     *
     * @return
     */
    public java.time.Instant getReadDate() {
        return ReadDate;
    }

    /**
     * 设置ReadDate
     *
     * @param ReadDate
     */
    public void setReadDate(java.time.Instant ReadDate) {
        this.ReadDate = ReadDate;
    }

    /**
     * 获取PreValue
     *
     * @return
     */
    public Integer getPreValue() {
        return PreValue;
    }

    /**
     * 设置PreValue
     *
     * @param PreValue
     */
    public void setPreValue(Integer PreValue) {
        this.PreValue = PreValue;
    }

    /**
     * 获取Enter
     *
     * @return
     */
    public Integer getEnter() {
        return Enter;
    }

    /**
     * 设置Enter
     *
     * @param Enter
     */
    public void setEnter(Integer Enter) {
        this.Enter = Enter;
    }

    /**
     * 获取CurValue
     *
     * @return
     */
    public Integer getCurValue() {
        return CurValue;
    }

    /**
     * 设置CurValue
     *
     * @param CurValue
     */
    public void setCurValue(Integer CurValue) {
        this.CurValue = CurValue;
    }

    /**
     * 获取Dial
     *
     * @return
     */
    public Integer getDial() {
        return Dial;
    }

    /**
     * 设置Dial
     *
     * @param Dial
     */
    public void setDial(Integer Dial) {
        this.Dial = Dial;
    }

    /**
     * 获取Amount
     *
     * @return
     */
    public Integer getAmount() {
        return Amount;
    }

    /**
     * 设置Amount
     *
     * @param Amount
     */
    public void setAmount(Integer Amount) {
        this.Amount = Amount;
    }

    /**
     * 获取Formula
     *
     * @return
     */
    public String getFormula() {
        return Formula;
    }

    /**
     * 设置Formula
     *
     * @param Formula
     */
    public void setFormula(String Formula) {
        this.Formula = Formula;
    }

    /**
     * 获取Audit
     *
     * @return
     */
    public Integer getAudit() {
        return Audit;
    }

    /**
     * 设置Audit
     *
     * @param Audit
     */
    public void setAudit(Integer Audit) {
        this.Audit = Audit;
    }

    /**
     * 获取AuditEmpID
     *
     * @return
     */
    public Integer getAuditEmpID() {
        return AuditEmpID;
    }

    /**
     * 设置AuditEmpID
     *
     * @param AuditEmpID
     */
    public void setAuditEmpID(Integer AuditEmpID) {
        this.AuditEmpID = AuditEmpID;
    }

    /**
     * 获取AuditDate
     *
     * @return
     */
    public java.time.Instant getAuditDate() {
        return AuditDate;
    }

    public String getReadDate1() {
        return ReadDate1;
    }

    public void setReadDate1(String readDate1) {
        ReadDate1 = readDate1;
    }

    public String getAuditDate1() {
        return AuditDate1;
    }

    public void setAuditDate1(String auditDate1) {
        AuditDate1 = auditDate1;
    }

    public String getAuditDate2() {
        return AuditDate2;
    }

    public void setAuditDate2(String auditDate2) {
        AuditDate2 = auditDate2;
    }

    /**
     * 设置AuditDate
     *
     * @param AuditDate
     */
    public void setAuditDate(java.time.Instant AuditDate) {
        this.AuditDate = AuditDate;
    }

    public UsUser getUsUser() {
        return usUser;
    }

    public void setUsUser(UsUser usUser) {
        this.usUser = usUser;
    }

    public Integer getReadYear2() {
        return ReadYear2;
    }

    public void setReadYear2(Integer readYear2) {
        ReadYear2 = readYear2;
    }

    public Integer getReadMonth2() {
        return ReadMonth2;
    }

    public void setReadMonth2(Integer readMonth2) {
        ReadMonth2 = readMonth2;
    }

    @Override
    public String toString() {
        return "RdRead [ID=" + ID + " , ReadYear=" + ReadYear + " , ReadMonth=" + ReadMonth + " , UserNo=" + UserNo + " , MeterNo=" + MeterNo + " , MaxValue=" + MaxValue + " , VolumeId=" + VolumeId + " , VolumeIndex=" + VolumeIndex + " , ReadEmpID=" + ReadEmpID + " , ReadDate=" + ReadDate + " , PreValue=" + PreValue + " , Enter=" + Enter + " , CurValue=" + CurValue + " , Dial=" + Dial + " , Amount=" + Amount + " , Formula=" + Formula + " , Audit=" + Audit + " , AuditEmpID=" + AuditEmpID + " , AuditDate=" + AuditDate + "  ]";

    }


}
